package demo.cxf.app;
import javax.xml.ws.Endpoint;

import org.apache.cxf.frontend.ServerFactoryBean;

import demo.cxf.service.HelloWorld;
import demo.cxf.service.HelloWorldImpl;


public class ServerTest {
	
	
	public void testPubyEndpoint(){
		System.out.println("Starting Server");
		Endpoint.publish("http://localhost:9000/helloWorld", new HelloWorldImpl());   
	}

	public void testPubySerFactBean(){
		ServerFactoryBean svrFactory = new ServerFactoryBean();
		svrFactory.setServiceClass(HelloWorld.class);
		svrFactory.setAddress("http://localhost:9001/helloWorld");
		svrFactory.setServiceBean(new HelloWorldImpl());
		svrFactory.create();
	}
	
	

}
